<?php

namespace app\admin\validate\personal;

use think\Validate;

class AccountLog extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'money' => 'require|number',
        'content' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'money.require' => '请填写金额',
        'money.number' => '请填写正确的金额',
        'content.require' => '请填写备注',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['money','content'],
        'edit' => [],
    ];
    
}
